package com.worklog.service.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.worklog.mapper.MenuMapper;
import com.worklog.mapper.ProductMapper;
import com.worklog.model.Product;
import com.worklog.model.User;
import com.worklog.service.ProductService;

@Service("productService")
public class ProductServiceImpl extends BaseService<Product> implements ProductService {
	@Resource
	private ProductMapper productMapper;
	
	@Resource
	private MenuMapper menuMapper;

	@Override
	public List<Product> queryAll(User user) {
		List<Product> products = new ArrayList<Product>();
		products = productMapper.queryAll(user);
		return products;
	}
}
